// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.iso.SpriteDetails;

import java.util.HashMap;

public enum IsoObjectType {
    normal(0),
    jukebox(1),
    wall(2),
    stairsTW(3),
    stairsTN(4),
    stairsMW(5),
    stairsMN(6),
    stairsBW(7),
    stairsBN(8),
    UNUSED9(9),
    UNUSED10(10),
    doorW(11),
    doorN(12),
    lightswitch(13),
    radio(14),
    curtainN(15),
    curtainS(16),
    curtainW(17),
    curtainE(18),
    doorFrW(19),
    doorFrN(20),
    tree(21),
    windowFN(22),
    windowFW(23),
    UNUSED24(24),
    WestRoofB(25),
    WestRoofM(26),
    WestRoofT(27),
    isMoveAbleObject(28),
    MAX(29);

    private final int index;
    private static final HashMap<String, IsoObjectType> fromStringMap = new HashMap();

    private IsoObjectType(int int1) {
        this.index = int1;
    }

    public int index() {
        return this.index;
    }

    public static IsoObjectType fromIndex(int value) {
        return ((IsoObjectType[])IsoObjectType.class.getEnumConstants())[value];
    }

    public static IsoObjectType FromString(String str) {
        IsoObjectType isoObjectType = (IsoObjectType)fromStringMap.get(str);
        return isoObjectType == null ? MAX : isoObjectType;
    }

    static {
        for (IsoObjectType isoObjectType : values()) {
            if (isoObjectType == MAX) {
                break;
            }

            fromStringMap.put(isoObjectType.name(), isoObjectType);
        }
    }
}
